package org.genntii.warehousesystem.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.genntii.warehousesystem.domain.entity.Type;

import java.util.List;


@Mapper
public interface TypeMapper extends BaseMapper<Type> {

    @Select("select * from type limit #{page},10")
    List<Type> showAllByPage(@Param("page") int page);

    @Select("select * from type")
    List<Type> showAllType();

    @Select("select * from type where id = #{id}")
    List<Type> selectType(@Param("id")int id);

}
